package com.myBlog.enums;

public enum LoginMsgCode {

    Success(1,"操作成功"),
    LoginInfoEmpty(2,"登录信息不存在"),
    LoginTimeOut(3,"登录信息过期"),
    LoginError(4,"账号或密码错误"),
    LoginNull(5,"登录账号或密码为空");

    // 业务代码
    private int status;
    // 业务提示文字
    private String text;

    LoginMsgCode(int status, String text){
        this.status = status;
        this.text = text;
    }

    public int getStatus() {
        return status;
    }

    public String getText() {
        return text;
    }

    @Override
    public String toString() {
        return "MsgCode{" +
                "status=" + status +
                ", text='" + text + '\'' +
                '}';
    }
}
